package com.itaming.lycheeframework.security.result;

import com.itaming.lycheeframework.api.result.IErrorCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * Security模块错误码
 *
 * @author A.Ming
 */
@Getter
@RequiredArgsConstructor
public enum SecurityErrorCode implements IErrorCode {

    UNAUTHORIZED(980001, "请求未授权"),
    ACCESS_DENIED(980002, "权限不足"),
    INVALID_TOKEN(980011, "无效的令牌"),
    TOKEN_EXPIRED(980012, "令牌已过期"),
    INVALID_TOKEN_TYPE(980013, "无效的令牌类型"),
    INVALID_CLIENT_ID(980014, "无效的客户端标识"),
    ;

    /**
     * 状态码
     */
    private final int code;

    /**
     * 消息
     */
    private final String message;

}
